package com.slipper.mybatis;

import java.util.Map;

public interface Trigger {
    String BEFORE_INSERT = "BEFORE_INSERT"; // 插入前触发
    String BEFORE_UPDATE = "BEFORE_UPDATE"; // 更新前触发
    String BEFORE_DELETE = "BEFORE_DELETE"; // 删除前触发
    String AFTER_INSERT = "AFTER_INSERT"; // 插入后触发
    String AFTER_UPDATE = "AFTER_UPDATE"; // 更新后触发
    String AFTER_DELETE = "AFTER_DELETE"; // 删除后触发

    void trigger(String type, Map<String, Object> paramMap);
}
